package com.lsc.www.day09.hm;

import java.util.Scanner;

public class s7 {
    public static void main(String[] args) {
        int num = 0;
        int ret = 0;
        System.out.println("输入一个数值：");
        Scanner sc = new Scanner(System.in);
        num = sc.nextInt();

        while (num > 0) {
            ret = num % 10;
            System.out.print(ret);
            num /= 10;
        }
    }
}

